﻿using Microsoft.Extensions.DependencyInjection;
using Swashbuckle.AspNetCore.Swagger;

namespace ZilLion.Service.Core.Starter.Config
{
    public class CorsConfig
    {
        public static string DefaultCorsPolicyName = "localhost";
        public static void ConfigureServices(IServiceCollection services)
        {
            services.AddCors(options => options.AddPolicy(DefaultCorsPolicyName,
                builder => builder.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod()
                    ));

        }
    }
}